package com.t4htest;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

public class Details extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.details);
	
	    Intent getInfo = getIntent();
	    Bundle info = getInfo.getBundleExtra("info");
	    
	    int imgS = info.getInt("imageS");
	    String SName = info.getString("name");
	    String tell = info.getString("tell");
	    String introduction = info.getString("Sintroduction");
	    
	    ImageView storeImg = (ImageView)findViewById(R.id.storeImg);
	    TextView tv1 = (TextView)findViewById(R.id.storeName);
	    TextView tv2 = (TextView)findViewById(R.id.tell);
	    TextView tv4 = (TextView)findViewById(R.id.introduction);
	    
	    storeImg.setImageResource(imgS);
	    tv1.setText(SName);
	    tv2.setText(tell);
	    tv4.setText(introduction);
	}

}
